import React, {
	Component
} from 'react';
import { Router } from './../../../config/router.js';
import { Switch, Route } from 'react-router-dom';
import New2 from './new2/New2.js';
import New1Module from './new1.module.scss';

import { DatePicker } from 'antd';

class New1 extends Component {

	componentWillMount() {
		console.log(this)
	}
	componentDidMount() {}
	componentWillReceiveProps(newProps) {}
	shouldComponentUpdate(newProps, newState) {
		return true;
	}
	componentWillUpdate(nextProps, nextState) {}
	componentDidUpdate(prevProps, prevState) {}
	componentWillUnmount() {}

	render() {
		return (
			<div className={New1Module['New1']}>
		      	New1
				<br />
				<DatePicker />
			    <Switch>
			    	<Route path={ Router.client.new.new1.new2.path } component={ New2 }/>
			    </Switch>
		    </div>
		);
	}
}


export default New1;